/**
	@author Maciej Suminski
	@version 1.0

	Projekt VoD-ka
	Graficzny interfejs uzytkownika
*/

#ifndef GUI_HPP
#define GUI_HPP

#include "player.hpp"

class Gui: public wxFrame
{
public:
    Gui(const wxString& title = wxT("Vod-ka Client"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(MIN_WIDTH, MIN_HEIGHT));

	DECLARE_EVENT_TABLE()
private:
    wxTextCtrl* textCtrlAddress;
    wxStaticText* textStaticAddress;
    wxButton* buttonPlay;
    wxButton* buttonPause;
    wxButton* buttonClose;
    boost::shared_ptr<Player> player;

    void onButtonPlay(wxCommandEvent& event);
    void onButtonPause(wxCommandEvent& event);
    void onButtonClose(wxCommandEvent& event);
    void onPaint(wxPaintEvent& event);

    static const unsigned int MIN_WIDTH = 620;
    static const unsigned int MIN_HEIGHT = 200;
    static const unsigned int EXTEND_HEIGHT = 70;
};

enum
{
    ID_WXBUTTON_PLAY = 1,
    ID_WXBUTTON_PAUSE,
    ID_WXBUTTON_CLOSE,
    ID_WXTEXTSTATIC_ADDRESS,
    ID_WXTEXTCTRL_ADDRESS
};

#endif /* GUI_HPP */
